1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'this.postimages[0].src '' AND (site_id=3 OR site_id=0)' at line 1

SELECT pages_id FROM pages WHERE page_name='js/' this.postimages[0].src '' AND (site_id=3 OR site_id=0)

DATABASE_TEP_DB_ERROR